package eden.api.common.enums;

import lombok.Getter;

@Getter
public enum AccountTypeEnum {

    TRADE_ACCOUNT( "交易账户"),
    DEVELOP_ACCOUNT( "发展下级账户"),
    ;
    private final String description;

    AccountTypeEnum(String description) {
        this.description = description;
    }

    public static AccountTypeEnum getAccountTypeEnum(String name) {
        for (AccountTypeEnum accountTypeEnum : AccountTypeEnum.values()) {
            if (accountTypeEnum.name().equals(name)) {
                return accountTypeEnum;
            }
        }
        return null;
    }
}
